<template>
  <div>
    <div v-title>{{ title }}</div>
    <router-view @route-data-loaded="title"></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      title: 'oola'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<!-- app 要去掉 scoped，否则引入的共同样式带不到子组件去 -->
<style lang="scss">
 @import "../styles/config";
 @import "../styles/common";
 @import "../styles/public";
</style>
